<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0  maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>修改信息</title>
    <script src="js/jquery.min.js"></script>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="icon_font/iconfont.css">
    <script src="bootstrap/js/bootstrap.min.js"></script>
</head>
<style>
    body {
        background-color: #eff3f6
    }

    header {
        background-color: #fff;
        border-bottom: 1px solid #eff3f6;
        padding: 10px;
    }

    header .white {
        font-size: 26px;
    }

    header h3 {
        margin: 0;
        position: absolute;
        top: 3%;
        left: 50%;
        transform: translateX(-50%);
        font-size: 22px;
    }

    .group {
        display: flex;
        justify-content: space-between;
        background-color: #fff;
        border-bottom: 1px solid #eff3f6;
        padding: 10px;

    }

    .group img {
        width: 50px;
        height: 50px;
    }

    .gray {
        color: gray;
    }

    .block {
        color: #000;
    }

    .group input {
        border: none;
        text-align: right;
        outline: none;
    }



    .name {
        border: 1px solid #eff3f6;
        margin-top: 50px;
    }

</style>

<body>
    <div class="house_container">
        <header>
            <i class="iconfont white  icon-zuojiantou
            "></i>
            <h3>修改信息</h3>
        </header>
        <div class="group">
            <text class="block" id="name">浮生若梦</text>
            <text class="gray" id="editname">修改昵称</text>
        </div>
        <div class="group">
            <text class="block" id="phone">15152663255</text>
            <text class="gray" id="editphone">修改绑定号</text>
        </div>
        <div class="group">
            <text class="block" id="code">密码</text>
            <text class="gray" id="editcode">修改密码</text>
        </div>
    </div>
</body>
<script src="layer/layer.js"></script>
<script>
    $(function () {
        $("#editname").click(function () {
            layer.prompt({ title: '请输入新的昵称' }, function (val, index) {
                $('#name').text(val)
                layer.close(index);
            });
        })
        $("#editphone").click(function () {
            layer.prompt({ title: '请输入新的手机号' }, function (val, index) {
                $('#phone').text(val)
                layer.close(index);
            });
        })
        $("#editcode").click(function () {
            layer.prompt({ title: '请输入新的密码' }, function (val, index) {
                console.log(val)
                layer.close(index);
            });
        })



    })
</script>

</html>